package com.xh.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment implements Serializable {
    private Integer id;
    private Integer userId;
    private Integer bid;
    private String content;

    public Comment(Integer userId, Integer bid, String content) {
        this.userId = userId;
        this.bid = bid;
        this.content = content;
    }

    public Comment(Integer bid) {
        this.bid = bid;
    }
}
